T
The type of the elements within the array of the default value and which to parse the string value into.
Keysight Pathwave 89600 VSA .NET API
GetParsedArrayValueOrDefault<T>(String,T[]) Method
See Also 
Agilent.SA.Vsa.Interfaces Assembly > Agilent.SA.Vsa Namespace > CapabilityReadOnlyDictionary Class > GetParsedArrayValueOrDefault Method : GetParsedArrayValueOrDefault<T>(String,T[]) Method


key
The key of the value to be parsed.
defaultValue
A default value to be returned if the key cannot be found or the value associated with the key cannot be parsed into the specified type.

Glossary Item Box

Gets the value associated with the specified key or a default value if the key is not found.

Syntax

Visual Basic (Declaration) 
Public Overloads Function GetParsedArrayValueOrDefault(Of T As {New, Struct})( _
   ByVal key As String, _
   ByVal defaultValue() As T _
) As T()
C# 
public T[] GetParsedArrayValueOrDefault<T>( 
   string key,
   T[] defaultValue
)
where T: new(), struct
C++/CLI 
public:
array<T^>^ GetParsedArrayValueOrDefaultgeneric<typename T>
( 
   String^ key,
   array<T^>^ defaultValue
) 
where T: gcnew(), value class

Parameters

key
The key of the value to be parsed.
defaultValue
A default value to be returned if the key cannot be found or the value associated with the key cannot be parsed into the specified type.

Type Parameters

T
The type of the elements within the array of the default value and which to parse the string value into.

Return Value

The value.When the method is successful, the returned value is the value associated with the specified key. When the method fails, it returns defaultValue.

Exceptions

ExceptionDescription
System.NotSupportedExceptionIf the type of T used is not supported.

Requirements

Target Platforms: Windows 11 Professional or Enterprise; Windows 10 Professional, Enterprise, or Education (64-bit)

See Also